﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Sofire.DataComm.Net.Async
{
    /// <summary>
    /// 表示一个拥有 <see cref="Sofire.DataComm.Net.Async.IRemote"/> 的事件参数。
    /// </summary>
    public class AsyncSocketServerEventArgs : AsyncSocketEventArgs
    {
        private IRemote _ClientInfo;
        /// <summary>
        /// 获取远程端的信息。
        /// </summary>
        public IRemote ClientInfo
        {
            get
            {
                return this._ClientInfo;
            }
        }

        internal AsyncSocketServerEventArgs(SocketAsyncEventArgsServer asyncEventArgs)
            : base(asyncEventArgs)
        {
            this._ClientInfo = asyncEventArgs.ClientInfo;
        }
    }

    /// <summary>
    /// 表示一个拥有 <see cref="Sofire.DataComm.Net.Async.IRemote"/> 的事件委托。
    /// </summary>
    /// <param name="sender">事件对象。</param>
    /// <param name="e">事件参数。</param>
    public delegate void AsyncSocketServerEventHandler(object sender, AsyncSocketServerEventArgs e);
}
